<?php 
$con=Message::getList('MESSAGE-LIST', array('type'=>'guest')); ?> 
<?php foreach($con as $cont) { ?>
<div>
<img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/Flower_heart.jpg" />
</div>
<div style="margin-left: 70px; margin-top: -40px;color:#770777;">
<?php echo $cont->message ; ?> 
</div>
<div style="color:yellow;">
<?php
$datetime = strtotime($cont->created);
$mysqldate = date("d/m/y g:i A", $datetime);
?>
<br>
<span style="padding-left: 70px;font-size: 1.1em;padding-top: 5px"><?php echo 'from '.$cont->name.' on '.$mysqldate; ?> </span>
</div>

<?php 

} 
 	


 ?>

